﻿using System;
using System.Collections.Generic;
using NExt.Serialization.AjaxPro.Conversion;

namespace AjaxPro.Helper
{
    class Program
    {
        static void Main(string[] args)
        {
            AjaxPro.Utility.RegisterConverterForAjax(new ScriptJavaScriptConvertor());
            AjaxPro.Utility.RegisterConverterForAjax(new AnonymousObjectJavaScriptConvertor());
            AjaxPro.Utility.RegisterConverterForAjax(new ExtJavaScriptConvertor());
            global::AjaxPro.JavaScriptDeserializer.RegisterImplimentationType(typeof(IList<>), typeof(List<>));

            global::NExt.Core.Model.Base.Component ext = new NExt.Component();
            ext.extended = new { deneme = "dd" };
            string text = JavaScriptSerializer.Serialize(ext);


            object[] parameters = new object[] { "deneme", 5 };
            text = AjaxPro.JavaScriptSerializer.Serialize(parameters);


            Console.WriteLine(text);
        }
    }
}